package com.example.demo.entity;

//import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@TableName(value ="fi_finance")
@Data
public class FiFinance implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "number")
    private String number;

    /**
     * 商户
     */
    @TableField(value = "merchant")
    private String merchant;

    /**
     * 项目
     */
    @TableField(value = "project")
    private String project;

    /**
     * 起始日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "start_time")
    private String startTime;

    /**
     * 截止日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value = "end_time")
    private String endTime;

    /**
     * 缴费日期
     */
    @TableField(value = "pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String payTime;

    /**
     * 应收金额（元）
     */
    @TableField(value = "amount_receivable")
    private BigDecimal amountReceivable;

    /**
     * 已收金额（元）
     */
    @TableField(value = "amount_received")
    private BigDecimal amountReceived;

    /**
     * 未收金额（元）
     */
    @TableField(value = "outstanding_amount")
    private BigDecimal outstandingAmount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建者
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 更新者
     */
    @TableField(value = "update_user")
    private String updateUser;

    @TableField(exist = false)
    private BigDecimal totalSmall;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}